import request from '@/utils/request';

export async function GetCustomerByPage(params: any) {
  return request('/api/order/getCustomerByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addCustomer(params: any) {
  return request('/api/order/addCustomer', {
    method: 'POST',
    data: params,
  });
}

export async function delCustomer(params: any) {
  return request('/api/order/delCustomer', {
    method: 'POST',
    data: params,
  });
}

export async function updateCustomer(params: any) {
  return request('/api/order/updateCustomer', {
    method: 'POST',
    data: params,
  });
}

export async function getAllCustomer(params: any) {
  return request('/api/order/getAllCustomer', {
    method: 'POST',
    data: params,
  });
}

export async function getCustomerUserByPage(params: any) {
  return request('/api/order/getCustomerUserByPage', {
    method: 'POST',
    data: params,
  });
}

export async function userList(params: any) {
  return request('/api/order/userList', {
    method: 'POST',
    data: params,
  });
}

export async function addCustomerUsers(params: any) {
  return request('/api/order/addCustomerUsers', {
    method: 'POST',
    data: params,
  });
}

export async function deleteCustomerUser(params: any) {
  return request('/api/order/deleteCustomerUser', {
    method: 'POST',
    data: params,
  });
}
